@/*
    表单中input框标签中各个参数的说明:

    hidden : input hidden框的id
    id : input框id
    name : input框名称
    readonly : readonly属性
    clickFun : 点击事件的方法名
    placeholder:placeholder
    style : 附加的css属性
    width: 自定义宽默认100%
    disabled:disabled
    onChange :监听变化
@*/
@if(isEmpty(width)){
@	width="40%";
@}
@if(isEmpty(idl)){
@	idl=null;
@}
@if(isEmpty(idr)){
@	idr=null;
@}
@if(isEmpty(valuel)){
@	valuel=null;
@}
@if(isEmpty(valuer)){
@	valuer=null;
@}
@if(isEmpty(namel)){
@	namel=null;
@}
@if(isEmpty(namer)){
@	namer=null;
@}
<div class="form-group" >
    <label class="lab">${namel!}</label>
    <div class="ele ${isEmpty(name)?'ele-fit':''}">
    <div
           @if(isEmpty(readonly)){
           		style="width:${width!};background-color:#fff;${style!}"
           @}else{
           		style="width:${width!};background-color:#f3f3f3;${style!}"
           @}
	    >
        <input class="textbox" id="${idl}" name="${idl}" style="float:left;width:100%"
               @if(isNotEmpty(valuel)){
                    value="${valuel}"
               @}
               @if(isNotEmpty(type)){
                    type="${type}"
               @}else{
                    type="text"
               @}
               @if(isNotEmpty(readonly)){
                    readonly="${readonly}"
               @}
               @if(isNotEmpty(clickFun)){
                    onclick="${clickFun}"
               @}
               @if(isNotEmpty(style)){
                    style="${style}"
               @}
               @if(isNotEmpty(placeholder)){
                    placeholder="${placeholder}"
               @}
               @if(isNotEmpty(disabled)){
                    disabled="${disabled}"
               @}
               @if(isNotEmpty(onChange)){
                    onChange="${onChange}"
               @}
               @if(isNotEmpty(type)&&(type=="number")){
               		onkeyup="this.value=this.value.replace(/[^\d]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d]/g,'') "
               @}
        >
        </div>
        @if(isNotEmpty(hiddenl)){
            <input class="form-control" type="hidden" id="${hiddenl}" name="${hiddenl}" value="${hiddenlValue!}">
        @}

        @if(isNotEmpty(selectFlag)){
            <div id="${selectId}" style="display: none; position: absolute; z-index: 200;">
                <ul id="${selectTreeId}" class="ztree tree-box" style="${selectStyle!}"></ul>
            </div>
        @}
    
   
    <label class="lab" style="float:left;width:20%;text-align: right;">${namer!}</label>
    <div
           @if(isEmpty(readonly)){
           		style="width:${width!};background-color:#fff;${style!}"
           @}else{
           		style="width:${width!};background-color:#f3f3f3;${style!}"
           @}
	    >
        <input class="textbox" id="${idr}" name="${idr}" style="float:left;width:100%"
               @if(isNotEmpty(valuer)){
                    value="${valuer}"
               @}
               @if(isNotEmpty(type)){
                    type="${type}"
               @}else{
                    type="text"
               @}
               @if(isNotEmpty(readonly)){
                    readonly="${readonly}"
               @}
               @if(isNotEmpty(clickFun)){
                    onclick="${clickFun}"
               @}
               @if(isNotEmpty(style)){
                    style="${style}"
               @}
               @if(isNotEmpty(placeholder)){
                    placeholder="${placeholder}"
               @}
               @if(isNotEmpty(disabled)){
                    disabled="${disabled}"
               @}
               @if(isNotEmpty(onChange)){
                    onChange="${onChange}"
               @}
               @if(isNotEmpty(type)&&(type=="number")){
               		onkeyup="this.value=this.value.replace(/[^\d]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d]/g,'') "
               @}
        >
        </div>
        @if(isNotEmpty(hiddenr)){
            <input class="form-control" type="hidden" id="${hiddenr}" name="${hiddenr}" value="${hiddenrValue!}">
        @}

        @if(isNotEmpty(selectFlag)){
            <div id="${selectId}" style="display: none; position: absolute; z-index: 200;">
                <ul id="${selectTreeId}" class="ztree tree-box" style="${selectStyle!}"></ul>
            </div>
        @}
    </div>
</div>
@if(isNotEmpty(underline) && underline == 'true'){
    <div class="hr-line-dashed"></div>
@}


